package com.gscitysfy.cus.drain.modules.warning.controller;


import com.gscitysfy.cloudfrmwk.assistant.domain.Result;
import com.gscitysfy.cus.drain.annotations.DictTranslation;
import com.gscitysfy.cus.drain.annotations.FieldParam;
import com.gscitysfy.cus.drain.constants.DicConstant;
import com.gscitysfy.cus.drain.modules.warning.entity.DrainMonitorMnAlarm;
import com.gscitysfy.cus.drain.modules.warning.entity.DrainWaringSystem;
import com.gscitysfy.cus.drain.modules.warning.service.IDrainMonitorMnAlarmService;
import com.gscitysfy.cus.drain.modules.warning.service.IDrainWaringSystemService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 报警表 前端控制器
 * </p>
 *
 * @author Administrator
 * @since 2022-11-08 11:01:16
 */
@RestController
@RequestMapping("/warning/drainMonitorAlarm")
public class DrainMonitorMnAlarmController {
    @Autowired
    IDrainMonitorMnAlarmService drainMonitorMnAlarmService;
    /**
     * 获取预警机制详情
     * @return
     */
    @Operation(summary = "获取预警机制列表或者详情")
    @GetMapping("/listOrDetail")
    @Parameters({
            @Parameter(required = false, name = "cmKid", description = "详情时必须，监测报警cmKid")
    })
    public Result<Object> listOrDetail(@Parameter(hidden = true) DrainMonitorMnAlarm drainMonitorMnAlarm){
        return drainMonitorMnAlarmService.getListByQuery( drainMonitorMnAlarm);
    }


}
